/*
 * @Author: youngqj youngqj@126.com
 * @Date: 2024-10-21 18:30:23
 * @LastEditors: youngqj youngqj@126.com
 * @LastEditTime: 2024-12-04 18:33:38
 * @FilePath: /mallSystem/cmd/main.go
 * @Description:
 *
 * Copyright © Zhejiang Xiaoqu Information Technology Co., Ltd, All Rights Reserved.
 */

package main

import (
	"xiaoquio/web/core/config"
	"xiaoquio/web/core/utils"
	"xiaoquio/web/routes"
)

func main() {
	utils.RunDemoSnowFlake()
	siteConfig, _ := config.LoadConfig("../config/config.yaml")
	port := siteConfig.GetString("siteConfig.site_port")
	if port == "0" || port == "" {
		port = "9092"
	}
	r := routes.InitRoutes()
	r.Run(":" + port)

}
